﻿<UserControl x:Class="CL2036.UI.UI_Config"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" d:DesignHeight="200" d:DesignWidth="538">
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <GroupBox Grid.Row="0" Header="台体信息(2036)" Margin="2">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <DockPanel Grid.Row="0" >
                    <TextBlock Margin="10,4,2,2" Text="表位数量："/>
                    <ComboBox  Name="Cmb_Bws" Margin="4,2,2,2" Width="80" IsEditable="True" TextBoxBase.TextChanged="Cmb_Bws_TextChanged">
                        <ComboBoxItem>6</ComboBoxItem>
                        <ComboBoxItem>12</ComboBoxItem>
                        <ComboBoxItem>16</ComboBoxItem>
                        <ComboBoxItem>24</ComboBoxItem>
                        <ComboBoxItem>48</ComboBoxItem>
                        <ComboBoxItem>96</ComboBoxItem>
                    </ComboBox>
                    <TextBlock  Margin="2,4,2,2" Text="485总线数量："/>
                    <ComboBox Name="Cmb_485Count" Margin="0,2,2,2" Width="80" SelectionChanged="Cmb_485Count_SelectionChanged"/>
                    <TextBlock  Margin="2,4,2,2" Text="开启线程数："/>
                    <TextBox Name="Txt_OpenThreadCount" Margin="0,2,2,2"/>
                </DockPanel>
                <DockPanel Grid.Row="1">
                    <TextBlock Margin="10,4,2,2" Text="2036通道："/>
                    <TextBox Name="Txt_2036" Margin="0,2,2,2" Width="80"/>
                    <TextBlock Margin="2,4,2,2" Text="CL2018-1地址："/>
                    <TextBox Name="Txt_2018" Margin="0,2,2,2" Width="100"/>
                    <CheckBox Name="Chk_188H" Margin="2,5,2,2" Content="188H模式"/>
                    <CheckBox Name="Chk_Dx" Margin="2,5,2,2" Content="单相台"/>
                </DockPanel>
                <!--<StackPanel Grid.Row="2" Orientation="Horizontal">
                    <TextBlock Margin="10,4,2,2" Text="超时最大时间："/>
                    <TextBox Name="Txt_TimeOut" Margin="0,2,2,2" Width="80"/>
                    <TextBlock Margin="0,4,2,2" Text="(ms)"/>
                    <TextBlock Margin="2,4,2,2" Text="帧内字节最大间隔时间："/>
                    <TextBox Name="Txt_BytTimeOut" Margin="0,2,2,2" Width="80"/>
                    <TextBlock Margin="0,4,2,2" Text="(ms)"/>
                </StackPanel>-->
            </Grid>
        </GroupBox>
        <GroupBox Margin="2,0,2,2" Header="485通道信息" Grid.Row="1">
            <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
                <UniformGrid Name="Grid_Ole" Columns="4"/>

            </ScrollViewer>
        </GroupBox>
    </Grid>
</UserControl>
